package com.leyou.sh.web;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author balisong_fcs
 * @date 2020/12/26 20:20
 * @desc Hystrix 服务降级处理返回的信息
 */

@RestController
public class FallbackController {
    @GetMapping(value = "/hystrix/fallback")
    public ResponseEntity<String> fallBackController() {
        return ResponseEntity.status(HttpStatus.GATEWAY_TIMEOUT).body("网关请求超时");
    }
}
